package com.huaxin.hxmoduleworkorder.mapping;

import com.huaxin.hxmoduleworkorder.dto.request.InspectionTemplateCreateReqDTO;
import com.huaxin.hxmoduleworkorder.dto.request.InspectionTemplateUpdateReqDTO;
import com.huaxin.hxmoduleworkorder.models.InspectionTemplate;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface InspectionTemplateMapping {
    InspectionTemplate toEntity(InspectionTemplateCreateReqDTO in);

    void updateEntity(InspectionTemplateUpdateReqDTO in, @MappingTarget InspectionTemplate entity);
}